package com.gkzf.ai.module.crm.dal.mysql.creditreportsimple;

import com.gkzf.ai.framework.mybatis.core.mapper.BaseMapperX;
import com.gkzf.ai.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.gkzf.ai.module.crm.controller.admin.simpleCredit.vo.CreditReportSimpleCreditCardSaveReqVO;
import com.gkzf.ai.module.crm.dal.dataobject.creditreportsimple.CreditReportSimpleCreditCardDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * CRM 简版征信报告贷款/信用卡逾期明细 Mapper
 *
 * @author 国科智飞
 */
@Mapper
public interface CreditReportSimpleCreditCardMapper extends BaseMapperX<CreditReportSimpleCreditCardDO> {
    default List<CreditReportSimpleCreditCardDO> selectList(CreditReportSimpleCreditCardSaveReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<CreditReportSimpleCreditCardDO>()
                .eqIfPresent(CreditReportSimpleCreditCardDO::getCreditReportSimpleId, reqVO.getCreditReportSimpleId()));
    }
}